<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script>
			// let arr = new Array(9);
			// for (let i = 0; i < arr.length; i++) {
			// 	// 将数组的每一个坑位初始化为数组
			// 	arr[i] = (new Array(9)).fill(0);
			// }
			// console.log(arr);
			
			let arr = Array.from(new Array(9), () => new Array(9).fill(0)) 
			console.log(arr);
		</script>
	</body>
</html>
